package com.zitangkou.user.service;

import com.zitangkou.user.entity.EnterpriseDo;
import com.zitangkou.common.global.PageResp;
import com.zitangkou.user.req.enterprise.AddEnterpriseReq;
import com.zitangkou.user.req.enterprise.EditEnterpriseReq;
import com.zitangkou.user.req.enterprise.GetEnterpriseByPageReq;

/**
 * 企业
 *
 * @author Deng Ningning
 * @version 1.0
 * @date 2020/8/31 16:39
 */
public interface IEnterpriseService {
    /**
     * 分页查询企业
     *
     * @param req
     * @return com.zitangkou.common.global.PageResp<com.zitangkou.user.model.entity.EnterpriseDO>
     * @author Deng Ningning
     * @date 2020/9/1 17:18
     */
    PageResp<EnterpriseDo> selectByPage(GetEnterpriseByPageReq req);

    /**
     * 添加企业
     *
     * @param req
     * @return boolean
     * @author Deng Ningning
     * @date 2020/9/2 11:56
     */
    boolean insertEnterprise(AddEnterpriseReq req);

    /**
     * 修改企业
     *
     * @param req
     * @return boolean
     * @author Deng Ningning
     * @date 2020/9/2 11:56
     */
    boolean updateEnterprise(EditEnterpriseReq req);

    /**
     * 删除企业
     *
     * @param enterpriseId
     * @return boolean
     * @author Deng Ningning
     * @date 2020/9/2 11:56
     */
    boolean deleteEnterprise(String enterpriseId);

    /**
     * 查询企业详情
     *
     * @param enterpriseId
     * @return com.zitangkou.user.model.entity.EnterpriseDO
     * @author Deng Ningning
     * @date 2020/9/2 11:57
     */
    EnterpriseDo selectById(String enterpriseId);
}
